package sevensoft.创建型模式.单例模式.饿汉式.test;

import sevensoft.创建型模式.单例模式.饿汉式.Singleton2;

public class Demo {
    public static void main(String[] args) {
        Singleton2 instance = Singleton2.getInstance();

        Singleton2 instance1 = Singleton2.getInstance();

        System.out.println(instance == instance1);
    }
}
